//
//  AppDelegate+JwPack.m
//  JwPackDemo
//
//  Created by 陈警卫 on 2025/8/13.
//

#import "AppDelegate+JwPack.h"
#import "JwFrame.h"

#import "JPDHomeController.h"
#import "JPDMeController.h"

@implementation AppDelegate (JwPack)

- (void)setupApp {
    
}

- (void)setupRootViewController {
    NSMutableArray *tbModels = [NSMutableArray array];
    
    JPDHomeController *homeVC = [[JPDHomeController alloc] init];
    JwTabBarModel *homeModel = [JwTabBarModel modelWithVC:homeVC
                                             tabImageName:@"tab_discover"
                                                    title:@"Discover"];
    
    JPDMeController *meVC = [[JPDMeController alloc] init];
    JwTabBarModel *meModel = [JwTabBarModel modelWithVC:meVC
                                           tabImageName:@"tab_me"
                                                  title:@"Me"];
    
    [tbModels addObject:homeModel];
    [tbModels addObject:meModel];
    
    JwRootViewController *rc = [JwRootViewController rootWithTabBarModels:tbModels];
    self.window.rootViewController = rc;
}

@end
